import axios from "axios"
// import router from "../router";
import GLOBALS from "../../../components/global_jk";
axios.defaults.withCredentials = true; //允许请求的时候携带认证

// 需求周进度模块接口

// 需求周进度 左侧数据接口
export const getHostTeam = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/getHostTeam", //部署到测试环境地址
  method: "post",
  data
})
// 需求周进度 右边数据接口
export const getDemandInfo = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/getDemandInfo", //部署到测试环境地址
  method: "post",
  data
})
// 需求周进度  需求阶段接口
export const GetselectDemandCurrent = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/selectDemandCurrent", //部署到测试环境地址
  method: "get",
  data
})
// 需求==>修改的接口
export const insertDemandInfo = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/insertDemandInfo", //部署到测试环境地址
  method: "post",
  data
})


// 项目周进度模块接口

// 项目周进度 左侧数据接口
export const XgetHostTeam = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/getHostTeam", //部署到测试环境地址
  method: "post",
  data
})
// 项目周进度 右边数据接口
export const XgetDemandInfo = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/getDemandInfo", //部署到测试环境地址
  method: "post",
  data
})
// 项目周进度 修改接口
export const XinsertProjectInfo = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/insertProjectInfo", //部署到测试环境地址
  method: "post",
  data
})
// 项目周进度  项目阶段接口
export const GetselectProjectCurrent = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/selectProjectCurrent", //部署到测试环境地址
  method: "get",
  data
})

// 新增页面   需求部门 接口 \ 公用紧急变更申请发起业务部门接口
export const jjbgBusinessChargeDept = (data) => axios({
  url: GLOBALS.serverSrc + "/UrgencyController/businessChargeDept",
  method: 'get',
  data
})

// 新增页面  获取部门简称接口
export const GetselectDemandDeptName = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/selectDemandDeptName",
  method: 'get',
  data
})



// 树状图数据接口
export const getDendrogramData = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/getDendrogramData", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'get',
  data
})
// 判断是否显示数据 接口
export const getCheckAccess = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/checkAccess", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'post',
  data
})

// 删除需求接口
export const deleteDemandBySerialNo = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/deleteDemandBySerialNo", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'post',
  data
})
// 删除项目接口
export const deleteProjectBySerialNo = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/deleteProjectBySerialNo", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'post',
  data
})

// 需求新增 查询主办团队 接口
export const selectDemandTeam = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/selectDemandTeam", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'get',
  data
})
// 项目新增 查询主办团队 接口
export const selectProjectTeam = (data) => axios({
  url: GLOBALS.serverSrc + "/ProjectController/selectProjectTeam", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'get',
  data
})

// 查询项目经理接口
export const jjbgGetReviewerInfo = (data) => axios({
  url: GLOBALS.serverSrc + "/UrgencyController/getReviewerInfo",
  method: 'post',
  data
})


// 查询部门简称接口
export const selectDemandDeptName = (data) => axios({
  url: GLOBALS.serverSrc + "/DemandController/selectDemandDeptName", //本地测试地址
  //  url:"http://36.152.29.5:8080/FortController/seletescienceChargeTeam", // 部署到测试环境地址
  //  url:"http://66.0.44.83:8099/FortController/seletescienceChargeTeam", // 生产环境地址
  method: 'post',
  data
})
